package com.cy.sys.serviceImpl;


import com.cy.sys.dao.sysDeptDao;
import com.cy.sys.pojo.Dept;
import com.cy.sys.service.sysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class sysDeptServiceImpl implements sysDeptService {
    @Autowired
    private sysDeptDao sys;
    @Override
    public List<Dept> doFindObjects() {
        List<Dept> list=sys.doFindObjects();


        return list;
    }

    @Override
    public int doDeleteObject(Integer id ) {
        int a=sys.doDeleteObject(id);

        return a;
    }

    @Override
    public int doSaveObject(Dept dept) {
        int b =sys.doSaveObject(dept);
        //判断a的返回值
        return b;
    }

    @Override
    public int doUpdateObject(Dept dept) {
        int a =sys.doUpdateObject(dept);
        return a;

    }
}
